<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% for B in message %}
    <h1>{{ B }}教室物资有</h1>
    <table>
    <tr>
        <td><h2>物品</h2></td>
        <td><h2>数量</h2></td>
    </tr>
    {% for foo in message.B.0 %}
        <tr>
            <td>{{ foo }}</td>
            <td>{{ message.B.0.foo }}</td>
        </tr>
    {% endfor %}
    
    </table>
{% endfor %}
</body>
</html>